﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace mscook.core.domain
{
    public class AboutUs : Entity
    {
        [Required(ErrorMessage = "名称必填")]
        [StringLength(30, MinimumLength = 2, ErrorMessage = "标题必须为2-30位")]
        public virtual string Name { get; set; }
        //[Required(ErrorMessage = "标题必填")]
        //[StringLength(200, MinimumLength = 2, ErrorMessage = "名称必须为2-200位")]
        //public virtual string Title { get; set; }

        public virtual string Content { get; set; }
        
        [Required(ErrorMessage = "位置必填")]
        [Range(1, 20, ErrorMessage = "数字在1和20之间")]
        public virtual Int32 Sort { get; set; }
    }
}
